package org.jetlinks.community.mstn.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jetlinks.community.device.entity.DeviceInstanceEntity;
import org.jetlinks.community.mstn.entity.DeviceAliasEntity;

@Data
public class DeviceAliasListResVO {

    @Schema(description = "产品ID")
    private String productId;

    @Schema(description = "设备状态")
    private String state;

    @Schema(description = "站点")
    private String orgId;

    public static DeviceAliasListResVO of(DeviceAliasEntity entity) {
        DeviceAliasListResVO vo = new DeviceAliasListResVO();
        vo.setOrgId(entity.getSiteId());
        return vo;
    }

    public DeviceAliasListResVO with(DeviceInstanceEntity device){

        return this;
    }
}
